package com.yanqu.road.server.cmd.grandchild;

import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.grandchild.GrandChildMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.CrossProtocol;

@Cmd(code = CrossProtocol.C_GRAND_CHILD_GET_HISTORY_IMPERIAL_EXAM, desc = "跨服获取皇榜")
public class CrossGetHistoryExamCmd extends CrossCommand {

    private long userId;

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        userId = packet.getPlayerId();
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        GrandChildMgr.getHistoryExam(serverId, userId);
    }

    @Override
    public void sendData() {

    }
}
